import { createRouter, createWebHistory } from 'vue-router'
import WebSocketView from '../views/WebSocketView.vue'
import SeeView from '../views/SeeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.url),
  routes: [
    {
      path: '/',
      redirect: '/websocket'
    },
    {
      path: '/websocket',
      name: 'websocket',
      component: WebSocketView
    },
    {
      path: '/see',
      name: 'see',
      component: SeeView
    }
  ]
})

export default router